<?php
function ObtenerNavegador($user_agent) {
     $navegadores = array(
          'Opera' => 'Opera',
          'Mozilla Firefox'=> '(Firebird)|(Firefox)',
          'Galeon' => 'Galeon',
          'Mozilla'=>'Gecko',
          'MyIE'=>'MyIE',
          'Lynx' => 'Lynx',
          'Netscape' => '(Mozilla/4\.75)|(Netscape6)|(Mozilla/4\.08)|(Mozilla/4\.5)|(Mozilla/4\.6)|(Mozilla/4\.79)',
          'Konqueror'=>'Konqueror',
		  'Internet Explorer 8' => '(MSIE 8\.[0-9]+)',
          'Internet Explorer 7' => '(MSIE 7\.[0-9]+)',
          'Internet Explorer 6' => '(MSIE 6\.[0-9]+)',
          'Internet Explorer 5' => '(MSIE 5\.[0-9]+)',
          'Internet Explorer 4' => '(MSIE 4\.[0-9]+)',
);
foreach($navegadores as $navegador=>$pattern){
       if (eregi($pattern, $user_agent))
       return $navegador;
    }
return 'Desconocido';
}
?>
<?php $nave=ObtenerNavegador($_SERVER['HTTP_USER_AGENT']);

$OSList = array 
( 
// Match user agent string with operating systems 
'Windows 3.11' => 'Win16', 
'Windows 95' => '(Windows 95)|(Win95)|(Windows_95)', 
'Windows 98' => '(Windows 98)|(Win98)', 
'Windows 2000' => '(Windows NT 5.0)|(Windows 2000)', 
'Windows XP' => '(Windows NT 5.1)|(Windows XP)', 
'Windows Server 2003' => '(Windows NT 5.2)', 
'Windows Vista' => '(Windows NT 6.0)', 
'Windows 7' => '(Windows NT 7.0)', 
'Windows NT 4.0' => '(Windows NT 4.0)|(WinNT4.0)|(WinNT)|(Windows NT)', 
'Windows ME' => 'Windows ME', 
'Open BSD' => 'OpenBSD', 
'Sun OS' => 'SunOS', 
'Linux' => '(Linux)|(X11)', 
'Mac OS' => '(Mac_PowerPC)|(Macintosh)', 
'QNX' => 'QNX', 
'BeOS' => 'BeOS', 
'OS/2' => 'OS/2', 
'Search Bot'=>'(nuhk)|(Googlebot)|(Yammybot)|(Openbot)|(Slurp)|(MSNBot)|(Ask Jeeves/Teoma)|(ia_archiver)' 
); 
// Loop through the array of user agents and matching operating systems 
foreach($OSList as $CurrOS=>$Match) 
{ 
// Find a match 
if (eregi($Match, $_SERVER['HTTP_USER_AGENT'])) 
{ 
// We found the correct match 
break; 
} 
} 


?>



<table border="0" width="100%" cellpadding="0" cellspacing="0" align="center">
  <tr align="center">
  <td width="70px">
<?  echo $cargar->AbrirMarco_1('DERECHOS DE AUTOR');?>

<table border="0" width="90%" cellpadding="0" cellspacing="0" align="center">
  <tr align="center">
  <td width="70px">
  <br />
  
  <div style="width:100%; height:100%; "> 
 <?  echo $cargar->AbrirMarco_2('DATOS DEL SISTEMA');?>
  <table border="0" width="100%" height="100%" cellpadding="3" cellspacing="0" align="left">
  <tr align="left"><td align="left"><?  echo $cargar->font_1('Sistema Operativo Actual:',$CurrOS);?></td><td></td></tr>
  <tr align="left"><td align="left"><?  echo $cargar->font_1('Tu ip de Conexion:',$_SERVER['REMOTE_ADDR']);?></td><td></td></tr>
  <tr align="left"><td align="left"><?  echo $cargar->font_1('Navegador Web:',$nave);?></td><td></td></tr>
  <tr align="left"><td align="left"><?  echo $cargar->font_1('Framework:','Cakephp');?></td><td></td></tr>
  <tr align="left"><td align="left"><?  echo $cargar->font_1('Version Php:','PHP5');?></td><td></td></tr>
  <tr align="left"><td align="left"><?  echo $cargar->font_1('Motor Base Datos:','MYSQL');?></td><td></td></tr>
  <tr align="left"><td align="left"><?  echo $cargar->font_1('Usuario Actual:', $_SESSION['username']);?></td><td></td></tr>
  <tr align="left"><td align="left"><?  echo $cargar->font_1('Modulo:',$_SESSION['departamento_nombre']);?></td><td></td></tr>
  </table>
  <?  echo $cargar->CerrarMarco();?>
  </div>
   
  </td></tr>
  
  
   <tr align="center">
  <td width="70px">
  <br />
  
  
  
  
  <div style="width:100%; height:100%; "> 
 <?  echo $cargar->AbrirMarco_2('DESARROLLO');?>

  <table border="0" width="100%" height="100%" cellpadding="3" cellspacing="0" align="left">
    <tr align="left"><td align="left"><?  echo $cargar->font_1('Sistema Desarrollado por:','');?><BR /><BR />
	<li><?  echo $cargar->font_1(' ','ALEXANDRA SARMIENTO - ayj_0309@hotmail.com - 04126269422');?></li>
	<li><?  echo $cargar->font_1(' ','MENYI OROPEZA - menyi0206@hotmail.com - 04125765149');?></li></td>
    </tr>
    </table>
  <?  echo $cargar->CerrarMarco();?>
  </div>
   
  </td></tr>
   
 
 </table>
  <?  echo $cargar->CerrarMarco();?> <br /> <br /> <br /> <br />